# Created by the script cgal_create_cmake_script
# This is the CMake script for compiling a CGAL application.

project( Linear_cell_complex_load_off )

cmake_minimum_required(VERSION 2.6.2)
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER 2.8.3)
  cmake_policy(VERSION 2.8.4)
else()
  cmake_policy(VERSION 2.6)
endif()

set(EXECUTABLE_OUTPUT_PATH bin)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/)

include_directories(
	./src
)

set(cgal_src
	src/CGAL/assertions.cpp
	src/CGAL/io.cpp
	src/CGAL/Timer.cpp
	src/CGAL/Real_timer.cpp
	src/CGAL/kernel.cpp
	src/CGAL/File_header_OFF.cpp
	src/CGAL/File_header_extended_OFF.cpp
	src/CGAL/File_scanner_OFF.cpp
	src/CGAL/io.cpp
	src/CGAL/File_writer_OFF.cpp
)

file(GLOB boost_po_src
	src/boost_program_options/*.cpp
)

# To use valgrind, we must disable rounding math ckeck.
# add_definition(-DCGAL_DISABLE_ROUNDING_MATH_CHECK)

include_directories(.)
include("CMakeLCCViewerQt.inc")

# In the next line, add all the source files.
add_executable(segmentation_off src/segmentation_off.cpp ${cgal_src} ${boost_po_src})
target_link_libraries(segmentation_off ${MAP_VIEWER_LIBRARIES})

